package com.example.czy.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.czy.entity.Goods;
import com.example.czy.vo.GoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品
 *
 * @author czy
 * @date 2022-02-25
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 根据QO查询
     *
     * @param page
     * @param wrapper
     * @return
     */

    Page<GoodsVO> selectByQO(IPage page, @Param(Constants.WRAPPER) Wrapper wrapper);


    List<GoodsVO> selectByQO(@Param(Constants.WRAPPER) Wrapper wrapper);
}
